package cosplay.DAO;

import java.util.List;

import cosplay.Beans.CompetitionDetails;
import cosplay.Beans.Users;

public interface UserDAO {
	public int add(Users user);
	public boolean delete(int id);
	public boolean edit(Users user, int id);
	public Users get(int id);
	public List<Integer> getAll();
	public List<Integer> getLastJoined();
	public List<Integer> getLastLog();
	public boolean join(CompetitionDetails result);
	public boolean quit(int uid, int cid);
	public int verify(String uname);
	public boolean login (int userid,String logip);
	public Users getByName(String uname);
	public byte[] getHeadImage(int userid);
	public int getIDByName(String name);
}
